public class PriorityQueue {
    public static void main(String[] args) {
        java.util.PriorityQueue<Integer> priorityQueue=new java.util.PriorityQueue<>();
        int []arr={2,65,45,1};
        for (int i = 0; i < arr.length; i++) {
            priorityQueue.offer(arr[i]);
        }
        System.out.println(priorityQueue.toString());
    }
}
